using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace NGourd.Core.Reports
{
    public interface IFileSystemService
    {
        void WriteToFile(string fileName, string fileContent);
    }

    public class FileSystemService : IFileSystemService
    {
        public void WriteToFile(string fileName, string fileContent)
        {
            using (var writer = new StreamWriter(fileName, false))
            {
                writer.Write(fileContent);
            }
        }
    }

    public class MockFileSystemService : IFileSystemService
    {
        public string FileName { get; private set; }
        public string FileContent { get; private set; }

        public void WriteToFile(string fileName, string fileContent)
        {
            FileName = fileName;
            FileContent = fileContent;
        }
    }
}
